package com.yuxi.Dao;

import org.springframework.stereotype.Repository;

import com.yuxi.Entity.InformationFlow;
import com.yuxi.Entity.UserSecurity;



/**
 *用户密保操作接口
 * @author hunter
 * @version 1.0
 * 2016/07/18
 */

@Repository
public interface UserSecurityDao  {
	/**
	 * 通过问题获取答案
	 * @param 	q
	 * @return UserSecurity 
	 * */
	public UserSecurity getAnswerByQuestion(String q,String a);
	/**
	 * 添加一个密保问题和答案  
	 * @param 	uSecurity UserSecurity实体类
	 * @return UserSecurity 
	 * */
	public UserSecurity addSecurity(UserSecurity uSecurity);
	/**
	 * 通过用户id获取所有问题
	 * @param 	Id
	 * @return UserSecurity 
	 * */
	public UserSecurity getAllQuestionByUserd(Integer id);
	/**
	 * 修改密保问题
	 * @param 	Id
	 * @return UserSecurity 
	 * */
	public void modify(UserSecurity uSecurity);
}
